<nav  style="text-align:center">
        <ul class="pagination">
          <li id="prev-page" class="<%= current == 1 ? 'disabled' : '' %>"><a href="javascript:;"  aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>          
          <!-- <li class="page active"><a href="javascript:;">1 </a></li>
          <li class="page"><a href="javascript:;">2 </a></li>
          <li class="page"><a href="javascript:;">3 </a></li>
          <li class="page"><a href="javascript:;">4 </a></li> -->

          <!-- 需要current,总共多少页total -->
            <% for(let i=current-2;i<=current-0+2;i++){ %>
                <%if(i>0 && i<=total){%>
                    <li class="page <%= i==current? 'active':' '%>"><a href="javascript:;"><%= i %></a></li>
                  <%}%>
                <%}%>
          <li id="next-page" class="<%= current == total ? 'disabled' : '' %>"><a href="javascript:;" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>        </ul>
      </nav>